package com.tiantianyuegou.adapter;

import android.content.Context;
import android.widget.TextView;

import com.trouble.framework.adapter.BaseAdapterHelper;
import com.trouble.framework.adapter.QuickAdapter;
import com.tiantianyuegou.R;
import com.tiantianyuegou.model.ClassifyListModel;

import java.util.List;

/**
 * Created by Administrator on 2016/1/13.
 */
public class ListFenLeiAdapter extends QuickAdapter<ClassifyListModel>{

    Context mContext;

    public ListFenLeiAdapter(Context context,  List<ClassifyListModel> datas) {
        super(context, R.layout.listitem_fenlei);
        data.addAll(datas);
        mContext=context;
    }

    @Override
    protected void convert(BaseAdapterHelper helper, ClassifyListModel item) {
        TextView allClassify=helper.getView(R.id.tv_itemfenlei);
        allClassify.setText(item.getAllClassify());

    }
}
